gtk4.git
10 years agobuttonbox: Fix size request
Matthias Clasen [Sun, 20 Dec 2015 22:03:06 +0000 (17:03 -0500)]
buttonbox: Fix size request

A copy-paste mistake was making us always request too little
space, causing the buttons to be jumbled or cut off.

https://bugzilla.gnome.org/show_bug.cgi?id=759664

10 years agoinspector: Avoid criticals in the css editro
Matthias Clasen [Sun, 20 Dec 2015 19:40:49 +0000 (14:40 -0500)]
inspector: Avoid criticals in the css editro

We can't keep text iters around after text buffer has been
changed. Just clear the list errors when the buffer changes
before we've passed it again.

10 years agoentry: Fix typo
Michael Catanzaro [Sun, 20 Dec 2015 17:52:30 +0000 (11:52 -0600)]
entry: Fix typo

10 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 20 Dec 2015 13:41:08 +0000 (15:41 +0200)]
Updated Lithuanian translation

10 years agomodelbutton: Stop saving cairo state
Matthias Clasen [Sun, 20 Dec 2015 06:04:59 +0000 (01:04 -0500)]
modelbutton: Stop saving cairo state

GtkBuiltinIcon does this now on its own.

10 years agocheckbutton: stop saving cairo state
Matthias Clasen [Sun, 20 Dec 2015 06:04:13 +0000 (01:04 -0500)]
checkbutton: stop saving cairo state

GtkBuiltinIcon now does this on its own.

10 years agoSome updates to the CSS docs
Matthias Clasen [Sun, 20 Dec 2015 05:54:47 +0000 (00:54 -0500)]
Some updates to the CSS docs

Remove references to regions and engines, emphasize
element names over type names, update the list of
pseudo-states.

10 years agocheckmenuitem: port indicator gadget to GtkBuiltinIcon
Cosimo Cecchi [Sat, 19 Dec 2015 21:01:53 +0000 (13:01 -0800)]
checkmenuitem: port indicator gadget to GtkBuiltinIcon

Saves a lot of code.

10 years agomenuitem: port arrow gadget to GtkBuiltinIcon
Cosimo Cecchi [Sat, 19 Dec 2015 20:29:39 +0000 (12:29 -0800)]
menuitem: port arrow gadget to GtkBuiltinIcon

Saves a lot of code.

10 years agomenuitem: simplify code
Cosimo Cecchi [Sat, 19 Dec 2015 20:10:45 +0000 (12:10 -0800)]
menuitem: simplify code

Only cast once.

10 years agobuiltinicon: save/restore cairo context when rendering
Cosimo Cecchi [Sat, 19 Dec 2015 20:07:39 +0000 (12:07 -0800)]
builtinicon: save/restore cairo context when rendering

10 years agocheckmenuitem: deprecate indicator-size style property
Cosimo Cecchi [Sat, 19 Dec 2015 01:59:34 +0000 (17:59 -0800)]
checkmenuitem: deprecate indicator-size style property

We can now use min-width/min-height.

10 years agomenuitem: deprecate toggle-spacing style property
Cosimo Cecchi [Sat, 19 Dec 2015 01:52:16 +0000 (17:52 -0800)]
menuitem: deprecate toggle-spacing style property

We can move this to just use the actual GtkCssGadget of the menu item.

10 years agocheckmenuitem: use a gadget for the check indicator
Cosimo Cecchi [Fri, 18 Dec 2015 22:45:15 +0000 (14:45 -0800)]
checkmenuitem: use a gadget for the check indicator

This will make margins and other CSS properties work correctly on the
indicator.

10 years agotheme: fix menu check/radio styling
Cosimo Cecchi [Fri, 18 Dec 2015 22:20:39 +0000 (14:20 -0800)]
theme: fix menu check/radio styling

This is a leftover from the CssNode port of GtkCheckMenuItem and
GtkRadioMenuItem.

10 years agomenuitem: trivial cleanup
Cosimo Cecchi [Fri, 18 Dec 2015 18:10:28 +0000 (10:10 -0800)]
menuitem: trivial cleanup

10 years agocheckmenuitem: prefer early return
Cosimo Cecchi [Fri, 18 Dec 2015 17:59:23 +0000 (09:59 -0800)]
checkmenuitem: prefer early return

10 years agomenuitem: deprecate arrow-scaling style property
Cosimo Cecchi [Fri, 18 Dec 2015 05:54:46 +0000 (21:54 -0800)]
menuitem: deprecate arrow-scaling style property

With this, we can also remove the custom measure function of the arrow
gadget.

10 years agomenuitem: convert arrow rendering to GtkCssGadget
Cosimo Cecchi [Fri, 18 Dec 2015 05:41:40 +0000 (21:41 -0800)]
menuitem: convert arrow rendering to GtkCssGadget

This also deprecates the arrow-spacing style property, which can be now
replaced with a simple margin.

10 years agomenuitem: deprecate width-chars style property
Cosimo Cecchi [Fri, 18 Dec 2015 03:24:24 +0000 (19:24 -0800)]
menuitem: deprecate width-chars style property

Instead, we can just set min-width.

10 years agomenuitem: port to gadgets
Cosimo Cecchi [Fri, 18 Dec 2015 03:12:06 +0000 (19:12 -0800)]
menuitem: port to gadgets

This is not a complete conversion yet - more changes will come in later
commits.

10 years agomenuitem: use gtk_container_class_handle_border_width()
Cosimo Cecchi [Fri, 18 Dec 2015 02:50:12 +0000 (18:50 -0800)]
menuitem: use gtk_container_class_handle_border_width()

10 years agomenuitem: really ignore horizontal-padding
Cosimo Cecchi [Fri, 18 Dec 2015 01:46:31 +0000 (17:46 -0800)]
menuitem: really ignore horizontal-padding

This style property has been documented as been ignored for a long time,
but we were still reading it in some cases.

10 years agostatusbar: Deprecate style properties
Matthias Clasen [Sun, 20 Dec 2015 04:53:31 +0000 (23:53 -0500)]
statusbar: Deprecate style properties

We were not really using the shadow-type style property anyway,
so lets just deprecate it. Themes can directly theme the frame.

10 years agoAdwaita: Drop some deprecated style properties
Matthias Clasen [Sun, 20 Dec 2015 04:24:27 +0000 (23:24 -0500)]
Adwaita: Drop some deprecated style properties

These can now be replaces with min-width/min-height.

10 years agocheckbutton: Fix regression from builtin icon
Matthias Clasen [Sun, 20 Dec 2015 04:23:09 +0000 (23:23 -0500)]
checkbutton: Fix regression from builtin icon

The leaking of cairo transforms from builtin icon drawing
was causing the label to be drawn at the wrong position.

10 years agomodelbutton: Fix state confusion
Matthias Clasen [Sun, 20 Dec 2015 02:56:05 +0000 (21:56 -0500)]
modelbutton: Fix state confusion

Checked buttons were getting the wrong image.

10 years agoAdwaita: Try harder to fix arrow rendering
Matthias Clasen [Sun, 20 Dec 2015 01:46:26 +0000 (20:46 -0500)]
Adwaita: Try harder to fix arrow rendering

Fiddle with specificity to keep hovered modelbutton arrows
from rendering background.

10 years agomodelbutton: Hide checks initially
Matthias Clasen [Sun, 20 Dec 2015 01:16:51 +0000 (20:16 -0500)]
modelbutton: Hide checks initially

Manually constructed model buttons were always ending up
with a check. Fix that by hiding the indictator node initially.

10 years agoAdwaita: Fix treeview headers
Matthias Clasen [Sat, 19 Dec 2015 22:34:21 +0000 (17:34 -0500)]
Adwaita: Fix treeview headers

The borders went missing on these, at some point.

https://bugzilla.gnome.org/show_bug.cgi?id=759567

10 years agomodelbutton: Use a builtin icon for the arrow
Matthias Clasen [Sat, 19 Dec 2015 19:53:57 +0000 (14:53 -0500)]
modelbutton: Use a builtin icon for the arrow

No need to do this manually.

10 years agoexpander: Fix drawing in rtl
Matthias Clasen [Sat, 19 Dec 2015 16:22:18 +0000 (11:22 -0500)]
expander: Fix drawing in rtl

GtkBuiltinIcon leaves the cairo context in unclean state
when drawing, work around that.

10 years agoFix a case a height/width confusion
Matthias Clasen [Sat, 19 Dec 2015 16:11:34 +0000 (11:11 -0500)]
Fix a case a height/width confusion

10 years agoexpander: Use a builtin icon
Matthias Clasen [Sat, 19 Dec 2015 05:48:10 +0000 (00:48 -0500)]
expander: Use a builtin icon

This saves quite a bit of code.

10 years agoUpdated Slovak translation
Dušan Kazik [Sat, 19 Dec 2015 13:46:14 +0000 (13:46 +0000)]
Updated Slovak translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 19 Dec 2015 07:37:02 +0000 (07:37 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 19 Dec 2015 07:33:52 +0000 (07:33 +0000)]
Updated Portuguese translation

10 years agolabel: Allocate gadget before using it
Matthias Clasen [Sat, 19 Dec 2015 05:33:20 +0000 (00:33 -0500)]
label: Allocate gadget before using it

Move the gtk_css_gadget_allocate call before the
gtk_label_update_layout_width call. This fixes the
statusbar label in widget-factory page 2 coming
up fully ellipsized.

10 years agonotebook: Sync menu labels with page list in visibile_cb
Benjamin Otte [Sat, 19 Dec 2015 04:47:48 +0000 (05:47 +0100)]
notebook: Sync menu labels with page list in visibile_cb

It's where it changes. Size requests have nothing to do with that.

10 years agonotebook: Don't allocate during size requests
Benjamin Otte [Fri, 18 Dec 2015 00:01:33 +0000 (01:01 +0100)]
notebook: Don't allocate during size requests

wat?

10 years agolabel: Don't use _gtk_mis_get_padding_and_border()
Benjamin Otte [Sat, 19 Dec 2015 05:10:37 +0000 (06:10 +0100)]
label: Don't use _gtk_mis_get_padding_and_border()

The function takes into account CSS padding and border, which these days
is handled by the gadget code. Use gtk_misc_get_padding() instead.

10 years agoimagedefinition: The storage type is not a boolean
Christoph Reiter [Thu, 17 Dec 2015 18:52:23 +0000 (19:52 +0100)]
imagedefinition: The storage type is not a boolean

10 years agoSimplify actionbar
Matthias Clasen [Sat, 19 Dec 2015 03:57:16 +0000 (22:57 -0500)]
Simplify actionbar

We don't need a frame widget here, just render a top border on the
box.

10 years agoAdwaita: fix action bar styling
Matthias Clasen [Sat, 19 Dec 2015 03:37:57 +0000 (22:37 -0500)]
Adwaita: fix action bar styling

Make action bar buttons have some padding again.

10 years agoicon helper: suppress style_changed when transient
Matthias Clasen [Sat, 19 Dec 2015 01:53:02 +0000 (20:53 -0500)]
icon helper: suppress style_changed when transient

Transient nodes should not propagate style-changed signals
that can cause widgets to get reallocated. This was causing
treeviews and iconviews with pixbuf cells to be constantly
resized and redrawn.

10 years agoAdd more icon entry tests
Matthias Clasen [Sat, 19 Dec 2015 00:32:24 +0000 (19:32 -0500)]
Add more icon entry tests

This test shows that changing icon types works.

10 years agoentry: Don't clear when setting icons
Matthias Clasen [Fri, 18 Dec 2015 23:10:08 +0000 (18:10 -0500)]
entry: Don't clear when setting icons

Clearing the icon doesn't appear to be necessary with
todays code, and it has the unfortunate side-effect of
temoorarily hiding the icon's window, which breaks grabs
and makes us miss the button release event when the icon
is changed from a button press handler.

10 years agocss node: Use g_set_object
Matthias Clasen [Fri, 18 Dec 2015 21:55:21 +0000 (16:55 -0500)]
css node: Use g_set_object

Replace unref + assignment + ref combinations by g_set_object_calls.

10 years agoentry: Remove some dead code
Matthias Clasen [Fri, 18 Dec 2015 15:54:49 +0000 (10:54 -0500)]
entry: Remove some dead code

These defines are no longer used.

10 years agoAdd a way to highlight resizing widgets
Timm Bäder [Thu, 17 Dec 2015 11:34:30 +0000 (12:34 +0100)]
Add a way to highlight resizing widgets

https://bugzilla.gnome.org/show_bug.cgi?id=759586

10 years agoGtkWidget: Don't mix code and declarations
Timm Bäder [Fri, 18 Dec 2015 14:54:46 +0000 (15:54 +0100)]
GtkWidget: Don't mix code and declarations

10 years agoexpander: Deprecate style properties
Matthias Clasen [Fri, 18 Dec 2015 14:26:16 +0000 (09:26 -0500)]
expander: Deprecate style properties

This can all be done with CSS properties now.

10 years agoexpander: Let gadget render focus
Matthias Clasen [Fri, 18 Dec 2015 13:29:49 +0000 (08:29 -0500)]
expander: Let gadget render focus

This lets us drop lots of allocation fiddling, and reduces
the code that is consulting the style properties we want
to get rid of.

10 years agobox: Add a way to get the gadget
Matthias Clasen [Fri, 18 Dec 2015 12:37:52 +0000 (07:37 -0500)]
box: Add a way to get the gadget

This will be used in GtkButtonBox.

10 years agobuttonbox: Convert to gadgets
Matthias Clasen [Fri, 18 Dec 2015 11:48:04 +0000 (06:48 -0500)]
buttonbox: Convert to gadgets

Set a css name and use a gadget for button box allocation and
drawing.

10 years agoFix a problem with entry gadgets
Matthias Clasen [Thu, 17 Dec 2015 20:16:25 +0000 (15:16 -0500)]
Fix a problem with entry gadgets

place_windows is accessing the gadgets allocation, so make sure
to allocate the gadget before calling it.

10 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 17 Dec 2015 18:14:57 +0000 (19:14 +0100)]
Updated Spanish translation

10 years agogdkborder: change types from gint16 to gint
William Hua [Thu, 17 Dec 2015 17:38:35 +0000 (12:38 -0500)]
gdkborder: change types from gint16 to gint

10 years agogtkborder: restore original struct definition
William Hua [Thu, 17 Dec 2015 17:18:03 +0000 (12:18 -0500)]
gtkborder: restore original struct definition

We're going to add back the original struct definition removed by
a6e4de28, because using the typedef breaks all sorts of things like
gtkmm and WebKit, and having separate struct definitions allows us to
change the types in GdkBorder from gint16s to gints without breaking
ABI.

10 years agoWin32: call dnd exit when finalizing the display
Paolo Borelli [Tue, 15 Dec 2015 20:25:25 +0000 (21:25 +0100)]
Win32: call dnd exit when finalizing the display

Since we init dnd when opening the display, call the corresponding
exit function (which is unused at the moment) when finalizing the
display.

10 years agoWin32: move CoInitialize to dnd init
Paolo Borelli [Mon, 14 Dec 2015 18:40:25 +0000 (19:40 +0100)]
Win32: move CoInitialize to dnd init

Functions requiring CoInitialize are called just in two places:
 - the filechooser thread which calls its own CoInitializeEx
 - the dnd code

Moving CoInitialize in the dnd specific init is cleaner and
we can pair it with the corresponding CoUninitialize since
CoUninitialize should be called as many times as CoInitialize.
Note that it is ok to call this function multiple times, so it
will not break if another codepath will need it in the future.

The patch also replaces the deprecated CoInitialize with the
equivalent call to CoInitializeEx (already used in the filechooser).

10 years agoGtkSeparator: Don't leak the gadget
Timm Bäder [Thu, 17 Dec 2015 13:49:59 +0000 (14:49 +0100)]
GtkSeparator: Don't leak the gadget

10 years agoentry: use a gadget
Matthias Clasen [Sun, 6 Dec 2015 03:17:51 +0000 (22:17 -0500)]
entry: use a gadget

Use a gadget for the entry. Selection and progress still
just use a CSS node. Most things seem to work correctly
with non-zero margin or padding.

10 years agoinspector: Ensure clip is always shown
Lionel Landwerlin [Thu, 17 Dec 2015 01:14:31 +0000 (01:14 +0000)]
inspector: Ensure clip is always shown

10 years agoinspector: Always show clip
Matthias Clasen [Thu, 17 Dec 2015 00:24:43 +0000 (19:24 -0500)]
inspector: Always show clip

It is less confusing than hiding it sometimes.

10 years agogadget: Don't warn about unset clip
Matthias Clasen [Thu, 17 Dec 2015 00:14:39 +0000 (19:14 -0500)]
gadget: Don't warn about unset clip

Instead of warning about an unset clip, simply ignore
empty content clips.

10 years agocellview: Convert to gadgets
Matthias Clasen [Thu, 17 Dec 2015 00:07:26 +0000 (19:07 -0500)]
cellview: Convert to gadgets

10 years agogadget: Avoid warning for empty containers
Matthias Clasen [Wed, 16 Dec 2015 22:52:47 +0000 (17:52 -0500)]
gadget: Avoid warning for empty containers

Empty boxes end up setting the clip to { 0, 0, 0, 0}, so warning
for a width or height of 0 triggers false positives. Instead,
initialize the clip to clearly invalid values.

10 years agogadget: Add more information to warnings
Matthias Clasen [Wed, 16 Dec 2015 22:41:04 +0000 (17:41 -0500)]
gadget: Add more information to warnings

We have the gadget at hand, so we should print out some
information that helps tracking down where it comes from.

10 years agogadget: Update docs
Matthias Clasen [Wed, 16 Dec 2015 22:32:24 +0000 (17:32 -0500)]
gadget: Update docs

Make it clear that out_clip must be set.

10 years agogadget: Warn if clip is not set
Matthias Clasen [Wed, 16 Dec 2015 22:27:14 +0000 (17:27 -0500)]
gadget: Warn if clip is not set

This leads to hard-to-track-down drawing errors, so better
warn explicitly about it.

10 years agoframe: Fix gadget conversion
Matthias Clasen [Wed, 16 Dec 2015 22:12:12 +0000 (17:12 -0500)]
frame: Fix gadget conversion

The GtkCssAllocateFunc must set the clip to meaningful values.

10 years agoframe: Convert to gadgets
Matthias Clasen [Thu, 10 Dec 2015 04:00:35 +0000 (23:00 -0500)]
frame: Convert to gadgets

As part of this conversion, remove the hardcoded padding around
the label.

Unfortunately, we cannot use the main gadget for drawing the frame
decoration, since we want to draw a custom border instead of the
stock css border that gadgets insist on drawing for us. Therefore,
add an extra gadget with name border and use it just for rendering
the frame.

10 years agoGtkPopover: Ensure we unset modality before unparenting the popover
Carlos Garnacho [Wed, 16 Dec 2015 19:25:54 +0000 (20:25 +0100)]
GtkPopover: Ensure we unset modality before unparenting the popover

Otherwise the gtk_grab_remove() calls on widget destruction will happen
on the default window group, which may leave the real window group
of the popover with a dangling pointer if it is not the default one.

This could be seen on the inspector, open a popover in the properties
list and close the window with alt-F4.

10 years agolabel: Position the text properly
Benjamin Otte [Wed, 16 Dec 2015 19:39:51 +0000 (20:39 +0100)]
label: Position the text properly

The PangoLayout needs to be positioned according to the content
allocation of the gadget, not the widget's allocation.

10 years agocssnode: Redo first/last-child change tracking
Benjamin Otte [Wed, 16 Dec 2015 18:48:30 +0000 (19:48 +0100)]
cssnode: Redo first/last-child change tracking

Invisible nodes don't change the first/last-child status of the nodes
after/before them. That means we don't have to just check the state of
the adjacent node when modifying this state, but all their siblings
until we hit a visible node.

The same way, a node is not the first child if it has no previous
sibling, it is the first child if it has no previous visible sibling.
This is important for caching in the global lookup cache.

10 years agocheckbutton: Use a builtin icon
Benjamin Otte [Wed, 16 Dec 2015 17:44:58 +0000 (18:44 +0100)]
checkbutton: Use a builtin icon

Also, add support to uiltin icons to look up the default size from a
style property.

10 years agoswitch: Deprecate style properties
Matthias Clasen [Wed, 16 Dec 2015 18:48:08 +0000 (13:48 -0500)]
switch: Deprecate style properties

CSS min-width and min-height on the slider node fit this
perfectly. We still fall back to the slider-width and
slider-height style properties if the CSS properties are
not set.

10 years agoSimplify some code
Matthias Clasen [Wed, 16 Dec 2015 18:16:16 +0000 (13:16 -0500)]
Simplify some code

Deal with the min-width/min-height fallback the same way
as in GtkBuiltinIcon.

10 years agoinspector: Use seat grabs for the "inspect widget" feature
Carlos Garnacho [Wed, 16 Dec 2015 18:28:53 +0000 (19:28 +0100)]
inspector: Use seat grabs for the "inspect widget" feature

And remove some usages of GdkDeviceManager API.

10 years agoGtkTreeView: Add ignore deprecation statements
Carlos Garnacho [Wed, 16 Dec 2015 18:27:34 +0000 (19:27 +0100)]
GtkTreeView: Add ignore deprecation statements

We still need access to floating devices at places.

10 years agoGtkWindow: Add ignore deprecation statements
Carlos Garnacho [Wed, 16 Dec 2015 18:27:06 +0000 (19:27 +0100)]
GtkWindow: Add ignore deprecation statements

We still need access to floating devices at places

10 years agoGtkWindow: Avoid GdkDeviceManager API
Carlos Garnacho [Wed, 16 Dec 2015 18:26:21 +0000 (19:26 +0100)]
GtkWindow: Avoid GdkDeviceManager API

We can iterate over the seats' pointers, instead of over master pointers.

10 years agoGtkWidget: Add some ignore deprecation statements
Carlos Garnacho [Wed, 16 Dec 2015 18:24:51 +0000 (19:24 +0100)]
GtkWidget: Add some ignore deprecation statements

We still need access to floating devices here.

10 years agoGtkMenu: Avoid GdkDeviceManager API
Carlos Garnacho [Wed, 16 Dec 2015 18:24:20 +0000 (19:24 +0100)]
GtkMenu: Avoid GdkDeviceManager API

We used to pick a master pointer "at random", use the default seat pointer
instead.

10 years agoGtkComboBox: Avoid GdkDeviceManager API
Carlos Garnacho [Wed, 16 Dec 2015 18:23:25 +0000 (19:23 +0100)]
GtkComboBox: Avoid GdkDeviceManager API

We used to pick a master pointer "at random", use the default seat pointer
instead.

10 years agoscrolledwindow: Remove unneeded code
Carlos Garnacho [Wed, 16 Dec 2015 18:22:41 +0000 (19:22 +0100)]
scrolledwindow: Remove unneeded code

We no longer take a grab here, no need to undo it on grab_notify

10 years agox11: Make fallback window dragging use seat grabs
Carlos Garnacho [Wed, 16 Dec 2015 18:21:33 +0000 (19:21 +0100)]
x11: Make fallback window dragging use seat grabs

Also, gdk_seat_ungrab() will undo the implicit grab when EWMH dragging
is used.

10 years agox11: Add some ignore deprecation statements
Carlos Garnacho [Wed, 16 Dec 2015 18:20:28 +0000 (19:20 +0100)]
x11: Add some ignore deprecation statements

In those places we still need access to floating devices, or we need to
use the GdkDeviceManager as its GdkEventTranslator interface.

10 years agox11: Avoid gdk_device_manager_get_client_pointer()
Carlos Garnacho [Wed, 16 Dec 2015 18:15:08 +0000 (19:15 +0100)]
x11: Avoid gdk_device_manager_get_client_pointer()

We can use the pointer of the default seat instead.

10 years agowayland: Avoid GdkDeviceManager APIs
Carlos Garnacho [Wed, 16 Dec 2015 18:12:18 +0000 (19:12 +0100)]
wayland: Avoid GdkDeviceManager APIs

In most places, we can do with the pointer/keyboard of the default seat
instead of the client pointer. We can also remove some code from
gdk_input_init() because we know for sure there's no floating devices to
care about here.

10 years agobroadway: Add a few ignore deprecations statements around GdkDeviceManager
Carlos Garnacho [Wed, 16 Dec 2015 18:08:52 +0000 (19:08 +0100)]
broadway: Add a few ignore deprecations statements around GdkDeviceManager

There's places where we still need to deal with floating devices, which are
unseen by seats. Ignore deprecations and keep using GdkDeviceManager until
we can forget about floating devices.

10 years agoGdkDisplay: Add a few ignore deprecations statements around GdkDeviceManager
Carlos Garnacho [Wed, 16 Dec 2015 18:07:20 +0000 (19:07 +0100)]
GdkDisplay: Add a few ignore deprecations statements around GdkDeviceManager

There's places where we still need to deal with floating devices, which are
unseen by seats. Ignore deprecations and keep using GdkDeviceManager until
we can forget about floating devices.

10 years agoGdkWindow: Add a few ignore deprecations statements around GdkDeviceManager
Carlos Garnacho [Wed, 16 Dec 2015 18:05:49 +0000 (19:05 +0100)]
GdkWindow: Add a few ignore deprecations statements around GdkDeviceManager

There's places where we still need to deal with floating devices, which are
unseen by seats. Ignore deprecations and keep using GdkDeviceManager until
we can forget about floating devices.

10 years agoGdkDisplay: Iterate through seats' pointers/keyboards in older grab functions
Carlos Garnacho [Wed, 16 Dec 2015 18:04:32 +0000 (19:04 +0100)]
GdkDisplay: Iterate through seats' pointers/keyboards in older grab functions

Instead of using the GdkDeviceManager.

10 years agoGdkWindow: Iterate through seats' pointers/keyboards in older grab functions
Carlos Garnacho [Wed, 16 Dec 2015 18:02:31 +0000 (19:02 +0100)]
GdkWindow: Iterate through seats' pointers/keyboards in older grab functions

Instead of using the GdkDeviceManager.

10 years agogdkevents: Fallback to the event device seat
Carlos Garnacho [Wed, 16 Dec 2015 18:00:39 +0000 (19:00 +0100)]
gdkevents: Fallback to the event device seat

There's places where we don't set a seat yet, plus the places
outside GTK+ where events are created, we should warn and fall
back to the master device seat with these.

10 years agogdkevents: Ensure the seat data is copied in events
Carlos Garnacho [Wed, 16 Dec 2015 17:59:57 +0000 (18:59 +0100)]
gdkevents: Ensure the seat data is copied in events

10 years agogdk: Set seat on events generated in common code
Carlos Garnacho [Wed, 16 Dec 2015 18:35:38 +0000 (19:35 +0100)]
gdk: Set seat on events generated in common code

10 years agoborder: silence a GIScanner warning
Cosimo Cecchi [Wed, 16 Dec 2015 18:40:18 +0000 (10:40 -0800)]
border: silence a GIScanner warning